package com.hnust.service;

import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface UpLoadService {
	
	/*
	 * @Author Tonited
	 * @Description //TODO 提供课程id和批量上传题目文件，返回题目的列表
	 * @Date 9:29 2020/10/31
	 * @Param [file, courseId]
	 * @return java.util.Map<java.lang.String,java.lang.Object>
	 **/
	public Map<String, Object> readQuestions(MultipartFile file, String courseId) throws Exception;

	/*
	 * @Author Tonited
	 * @Description //TODO 读取上传文件的工具类
	 * @Date 9:31 2020/10/31
	 * @Param [file]
	 * @return java.lang.String
	 **/
	public String upload(MultipartFile file) throws Exception;
}
